@import '../../assets/styles/index';

.header-panel {
  display: inline-block;
  position: absolute;
  top: 20px;
  right: 15px;

  .search {
    display: inline-block;

    .input {
      display: inline-block;
      background: #fff;
      width: 100px;
      height: 30px;
      border-radius: 50px;
      vertical-align: top;
      margin: 0 15px;
      line-height: 30px;
      padding: 0 10px;
      position: relative;
      overflow: hidden;

      @media screen and (min-width: 750px) {
        width: 200px;
      }

      i {
        font-size: 12px;
        color: $co6;
        opacity: .7;
      }

      input {
        outline: none;
        border: 0;
        height: 100%;
        width: 180px;
        background: rgba(0, 0, 0, 0);
        box-sizing: border-box;
        padding-left: 15px;
      }
      .env{
        position: absolute;
        top: 0;
        right: 0;
        background: #1d2935;
        padding: 0 10px;
        color: #fff;
        font-size: 12px;
        min-width: 30px;
        box-sizing: border-box;
      }
    }

    .button {
      display: none;
      background: $co0;
      color: #fff;
      height: 30px;
      border-radius: 50px;
      font-size: 12px;
      line-height: 30px;
      padding: 0 15px;
      margin-left: 10px;
      cursor: pointer;
      @media screen and (min-width: 550px) {
        display: inline-block;
      }
    }
  }
}

.v-package {
  padding: 25px 15px;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 150px);

  &::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0)
  }

  &::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0)
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 0px;
    background-color: $co8;
  }


  .dep {
    margin-bottom: 15px;

    .dep-tit {
      color: $co6;
    }

    .dep-list {
      .item {
        padding: 15px;
        padding-left: 0;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, .3);
        position: relative;

        .avatar {
          height: 45px;
          width: 45px;
          display: inline-block;
          background-image: url('https://avatars.dicebear.com/v2/bottts/123.svg');
          background-position: center;
          margin-right: 10px;
        }

        .info {
          vertical-align: top;
          display: inline-block;
          white-space: nowrap;

          h5 {
            font-weight: normal;
            font-size: 18px;
            color: $co5;
            cursor: pointer;

            &:hover {
              color: $co0;
            }
          }

          span {
            color: $co6;
            font-size: 14px;
            margin-right: 15px;
            display: inline-block;
            font-weight: 200;

            b {
              font-weight: normal;
            }
          }

          .new {
            cursor: pointer;

            i {
              display: inline-block;
              font-size: 12px;
              color: $co0;
              margin-left: 5px;
              transform: scale(.9);
              position: relative;
              top: -1px;
              opacity: .7;
              &.act {
                animation: ring 3s ease infinite;
              }
            }

            &:hover i {
              opacity: 1;
            }
          }

          .install-status {
            font-size: 12px;
            opacity: .7;
            cursor: pointer;
          }
        }

        .handle {
          float: right;
          vertical-align: middle;
          // height: 100%;
          position: absolute;
          // top: 50%;
          top: 50%;
          right: 15px;
          transform: translateY(-50%);
          cursor: pointer;

          span {
            display: inline-block;
            font-size: 12px;
            color: $co5;
            margin-left: 10px;

            &.act {
              animation: ring 3s ease infinite;
            }

          }
        }
      }
    }
  }


  .loading {
    color: $co6;

    &:last-child {
      display: none;
    }
  }
}
